package com.sdy.healthcode.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzq
 * @since 2020-02-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class UserAction extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 用户健康状态 1-正常 2-异常
     */
    private Integer healthStatus;

    /**
     * 用户行为 1-in 2-out 3-other
     */
    private Integer action;

    /**
     * 执行策略 1-允许 2-拒绝
     */
    private Integer strategy;

    /**
     * 备注
     */
    private String remark;

    /**
     * 记录者ID
     */
    private Integer recorderId;

    /**
     * 记录所在地
     */
    private String recordAddr;

    /**
     * 记录时间
     */
    private String recordDate;

    /**
     * 记录时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date recordTime;

    /**
     * 身份 1-就诊患者 2-陪同家属 3-本院人员
     */
    private Integer type;
    
    private Integer healthCodeId;
    
    private String accompanyUser;

    /**
     * 是否外出 1-是 2-否
     */
    private Integer goOut;

    /**
     * 关卡ID
     */
    private Integer bayonetManageId;

    /**
     * 车辆记录id
     */
    private Integer vehicleId;

}
